<template>
    <div class="subpage withdraw-success-container">
        <div class="withdraw-success-top">
            <img src="../../../assets/img/withdraw_success_icon.png" alt="">
            <p>提现申请中</p>
            <p>提现金额：{{withdrawNum}}元</p>
            <p>手续费：{{fee}}元</p>
            <p>到账金额：{{withdrawNum - fee}}元</p>
        </div>
        <div class="withdraw-success-bottom">
            <van-button round class="u-btn-default" to="/">返回首页</van-button>
            <van-button round class="u-btn-default" @click="jumpDetail">查看详情</van-button>
        </div>
    </div>
</template>

<script>
export default {
    data() {
        return {
            withdrawNum: '',
            fee: 2
        }
    },
    created() {
        this.withdrawNum = Number(this.$route.query.withdrawNum);
    },
    methods: {
        jumpDetail() {
            this.$router.push({
                path: '/my/bill/billDetail/' + this.$route.query.id
            })
        }
    }
}
</script>

<style lang="scss" scoped>
    .withdraw-success-container {
        width: 100%;
        padding: 60px 49px 0;
        box-sizing: border-box;
        background-color: #fff;
        .withdraw-success-top {
            text-align: center;
            img {
                width: 120px;
                height: 95px;
                object-fit: cover;
            }
            p:nth-of-type(1) {
                margin-top: 24px;
                font-size: 20px;
                font-weight: 500;
            }
            p:nth-of-type(2) {
                margin-top: 12px;
                font-size: 16px;
                color: #5D6164;
            }
            p:nth-of-type(3) {
                margin-top: 6px;
                color: #969C9E;
            }
            p:nth-of-type(4) {
                color: #969C9E;
            }
        }
        .withdraw-success-bottom {
            width: 100%;
            margin-top: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            button {
                width: 120px;
                height: 32px;
                line-height: 32px;
                box-shadow: none;
                border: 1px solid #31BC8D;
                color: #31BC8D;
                font-size: 16px;
            }
        }
    }
</style>